package meterMonitor.constant;

public class Constant {

    /****************** 设备类型 ***********************/
    public static final int DEV_TEMPERATURE = 1;        // 温度
    public static final int DEV_PRESSURE = 2;           // 压力
    public static final int DEV_FLOW = 3;               // 流量
    public static final int DEV_ELECTRIC_CURRENT = 4;   // 电流
    public static final int DEV_LINE_SPEED = 5;         // 线速
    public static final int DEV_COUNT = 6;              // 计数

    /****************** 报警分类 ***********************/
    public static final int ALERT_PLC_OFF_LINE = 1;          // plc离线警报
    public static final int ALERT_EXCEEDING_STANDARD = 2;   // 数据超标

    /****************** 处理状态 ***********************/
    public static final int DEAL_WAITED = 0;        //未处理
    public static final int DEAL_PROCESSED = 1;      // 已处理
    public static final int DEAL_PROCESSING = 2;     // 处理中

    /****************** 通用状态 ***********************/
    public static final int NO = 0;     // 否定
    public static final int YES = 1;     // 肯定


    /****************** 返回状态 ***********************/
    public static final int SUCCESSCODE = 0;
    public static final int FAILCODE = 1;
    public static final String SUCCESSMSG = "操作成功！";
    public static final String FAILMSG = "操作失败！";

    /****************** 用户身份 ***********************/
    public static final Integer ROLE_ADMIN = 0; // 管理员
    public static final Integer ROLE_EMP1 = 1; //二线员工
    public static final Integer ROLE_EMP2 = 2; //一线员工


    /****************** 产线状态 ***********************/
    public static final Integer UNKNOWN = 0;//0未知
    public static final Integer PRODUCE = 1; //1生产
    public static final Integer DOWNTIME = 2; //2停机
    public static final Integer MAINTENANCE = 3; //3保养
    public static final Integer REPAIR = 4; //4维修


    public static final Integer ROLE_GUEST = -1; //访客角色


}
